@echo off
python --version >nul 2>&1 &&(
    IF EXIST "venv\" (
        cd %CD%
        start cmd.exe /k "venv\Scripts\activate.bat"^
        "&&python auto.py"
    ) ELSE (
        cd %CD%
        start cmd.exe /k "python -m venv venv"^
        "&&venv\Scripts\activate.bat"^
        "&&python -m pip install --upgrade pip"^
        "&&pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ colorama==0.4.4"^
        "&&pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ comtypes==1.1.10"^
        "&&pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ numpy==1.21.4"^
        "&&pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ opencv-python==4.5.4.60"^
        "&&pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ Pillow==8.4.0"^
        "&&pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ psutil==5.8.0"^
        "&&pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pywin32==302"^
        "&&pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pywinauto==0.6.8"^
        "&&pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ PyYAML==6.0"^
        "&&pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ six==1.16.0"^
        "&&pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pyperclip==1.8.2"^
        "&&python auto.py"
    )
) || (
    start cmd.exe /k "echo Python Not Found In System Path"^
    "&&echo Please open README.md, and install Python")